<?php
	$app->get('/doc/member/mobile/check', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/mobile/check',
			'summary' => '验证手机号',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'mobile',
					'ismust' => true,
					'type' => 'string',
					'summary' => '手机号'
				),
				array(
					'name' => 'type',
					'ismust' => false,
					'type' => 'int',
					'summary' => '校验类型 只检验会员数据库时传1'
				)
			)
		));
	});
	$app->get('/doc/member/register', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/register',
			'summary' => '注册',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'mobile',
					'ismust' => true,
					'type' => 'string',
					'summary' => '手机号'
				),
				array(
					'name' => 'password',
					'ismust' => true,
					'type' => 'string',
					'summary' => '密码，加密过的'
				),
				array(
					'name' => 'captcha',
					'ismust' => true,
					'type' => 'string',
					'summary' => '验证码'
				)
			)
		));
	});
	$app->get('/doc/member/login', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/login',
			'summary' => '登录',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'mobile',
					'ismust' => true,
					'type' => 'string',
					'summary' => '手机号'
				),
				array(
					'name' => 'password',
					'ismust' => true,
					'type' => 'string',
					'summary' => '密码，加密过的'
				)
			)
		));
	});
	$app->get('/doc/member/password/find', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/password/find',
			'summary' => '找回密码',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'mobile',
					'ismust' => true,
					'type' => 'string',
					'summary' => '手机号'
				),
				array(
					'name' => 'password',
					'ismust' => true,
					'type' => 'string',
					'summary' => '密码，加密过的'
				),
				array(
					'name' => 'captcha',
					'ismust' => true,
					'type' => 'string',
					'summary' => '验证码'
				)
			)
		));
	});
	$app->get('/doc/member/password/update', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/password/update',
			'summary' => '修改密码',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'oldpassword',
					'ismust' => true,
					'type' => 'string',
					'summary' => '旧密码，加密过的'
				),
				array(
					'name' => 'newpassword',
					'ismust' => true,
					'type' => 'string',
					'summary' => '新密码，加密过的'
				)
			)
		));
	});
	$app->get('/doc/member/paypassword/update', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/paypassword/update',
			'summary' => '修改交易密码',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'oldpaypassword',
					'ismust' => true,
					'type' => 'string',
					'summary' => '旧交易密码，加密过的(可以为空)'
				),
				array(
					'name' => 'newpaypassword',
					'ismust' => true,
					'type' => 'string',
					'summary' => '新交易密码，加密过的'
				)
			)
		));
	});
	$app->get('/doc/member/paypassword/updatebycaptcha', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/paypassword/updatebycaptcha',
			'summary' => '修改交易密码（通过短信验证码）',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'paypassword',
					'ismust' => true,
					'type' => 'string',
					'summary' => '交易密码，加密过的'
				),
				array(
					'name' => 'captcha',
					'ismust' => true,
					'type' => 'string',
					'summary' => '验证码'
				)
			)
		));
	});
	$app->get('/doc/member/paypassword/check', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/paypassword/check',
			'summary' => '验证交易密码',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'paypassword',
					'ismust' => true,
					'type' => 'string',
					'summary' => '交易密码，加密过的'
				)
			)
		));
	});
	$app->get('/doc/member/info', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/info',
			'summary' => '查询用户信息',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				)
			)
		));
	});
	$app->get('/doc/member/nickname/update', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/nickname/update',
			'summary' => '修改昵称',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'nickname',
					'ismust' => true,
					'type' => 'string',
					'summary' => '昵称'
				)
			)
		));
	});
	$app->get('/doc/member/head/update', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/head/update',
			'summary' => '修改头像',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'head',
					'ismust' => true,
					'type' => 'file',
					'summary' => '头像'
				)
			)
		));
	});
	$app->get('/doc/member/realinfo/update', function() use($app){
		$app->render('info.php', array(
			'name' => 'member/realinfo/update',
			'summary' => '会员真实信息填写',
			'method' => 'POST',
			'parameter' => array(
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户id'
				),
				array(
					'name' => 'realname',
					'ismust' => true,
					'type' => 'string',
					'summary' => '真实姓名'
				),
				array(
					'name' => 'idcard',
					'ismust' => true,
					'type' => 'string',
					'summary' => '身份证号'
				),
				array(
					'name' => 'sex',
					'ismust' => true,
					'type' => 'int',
					'summary' => '性别，1男0女'
				),
				array(
					'name' => 'photo',
					'ismust' => true,
					'type' => 'file',
					'summary' => '照片'
				)
			)
		));
	});
?>
